package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * @author : leimingchao
 * @date Date : 2021年11月07日 10:50
 */
public interface PaymentDao {

    /**
     * 保存payment
     * @param payment
     * @return
     */
    int create(Payment payment);

    /**
     * 根据id查询payment
     * @param id
     * @return
     */
    Payment getPaymentById(@Param(value = "id") Long id);
}
